<?php

namespace Mcm\RepasBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller
{
    public function indexAction()
    {
             $em = $this->getDoctrine()->getManager();

        $entities = $em->getRepository('McmRepasBundle:Repas')->findAll();

        
        return $this->render('McmRepasBundle:Default:index.html.twig', array('entities' => $entities));
    }
}
